﻿@{
    ViewBag.SysTitle = "WebAPP后台管理系统";
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_LayoutBase.cshtml";
    ViewBag.bgClass = "hold-transition login-page";
}
@model MyWebApp.Models.LoginUserModel
@section Head{
<link href="~/Scripts/iCheck/square/blue.css" rel="stylesheet" />
    <style type="text/css">
        .login-page {
            background-color:lightseagreen
        }
    </style>
}
<div class="login-box">
    <div class="login-logo">
        @ViewBag.SysTitle
    </div>
    <!-- /.login-logo -->
    <div class="login-box-body">
        <p class="login-box-msg">登录</p>
        @Html.HiddenFor(p=>p.ReturnUrl)
        @if (ViewBag.ErrorMsg != null)
        {
            <p class="alert-error">@ViewBag.ErrorMsg</p>
        }
        <form  method="post">
            <div class="form-group has-feedback">
                @Html.TextBoxFor(p=>p.UserId,new {  @class="form-control", placeholder="用户名"})
                <span class="glyphicon glyphicon-user form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
                @Html.PasswordFor(p => p.Password, new { @class = "form-control", placeholder = "密码" })
                @*<input type="password" name="Password" class="form-control" placeholder="密码">*@
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
            </div>
            <div class="row">
                <div class="col-xs-8">
                    <div class="checkbox icheck">
                        <label>
                            @Html.CheckBoxFor(p=>p.RememberMe)记住我
                            @*<input type="checkbox" name="RememberMe"> 记住我*@
                        </label>
                    </div>
                </div>
                <!-- /.col -->
                <div class="col-xs-4">
                    <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
                </div>
                <!-- /.col -->
            </div>
        </form>
        <a href="#">忘记密码</a><br>
    </div>
    <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

@section scripts{
<script src="~/Scripts/iCheck/icheck.min.js"></script>
<script>
  $(function () {
    $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%' // optional
    });
  });
</script>
}